package iad.neuralnet.measure;

import iad.neuralnet.attribute.Attribute;
import iad.neuralnet.attribute.iris.PetalLength;
import iad.neuralnet.attribute.iris.PetalWidth;
import iad.neuralnet.attribute.iris.SepalLength;
import iad.neuralnet.attribute.iris.SepalWidth;

import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class ArythmeticAverage {//implements IMeasure<T extends Number>{

	final static Logger log = LoggerFactory.getLogger(ArythmeticAverage.class);

	public double calculate(List<Double> column){

		double sum = 0;
		for(Double d: column){
			sum = sum + d.doubleValue();
		}
		return sum / column.size();
	}

}
